/*
测试Arithmetic中所有的方法
 */
import org.example.Arithmetic;
import org.junit.Test;

import static org.junit.jupiter.api.Assertions.*;

public class testAll {

    @Test
    public void testAdd() {
        assertEquals(8,new Arithmetic(3,5).add());
    }

    @Test
    public void testSubtract() {
        assertEquals(-2,new Arithmetic(3,5).subtract());
    }

    @Test
    public void testMultiply() {
        assertEquals(15,new Arithmetic(3,5).multiply());
    }

    @Test
    public void testDivide() {
        assertEquals(2,new Arithmetic(8,4).divide());
    }
}